#include "PrecompiledHeader.h"
#include "IPostprocess.h"

/*--------------------------------------------------------------------------*/

IPostprocess::IPostprocess(const Material* material) :
	m_material(material)
{
	AssertLogC(material == NULL, "NULL material in IPostprocess");
}

/*--------------------------------------------------------------------------*/

IPostprocess::~IPostprocess()
{

}

/*--------------------------------------------------------------------------*/

void IPostprocess::BindMaterial()
{
	g_Material->BindMaterial(this->m_material, EMaterialTechnique::Default);
}

/*--------------------------------------------------------------------------*/

void IPostprocess::UploadParameters()
{

}

/*--------------------------------------------------------------------------*/

void IPostprocess::ApplyPostprocess()
{
	ROpenGL::DrawFullscreenQuad();
}

/*--------------------------------------------------------------------------*/
